package gsp420.game;

import java.util.Vector;

public class Player extends Entity {
	
	Vector<Goal> goals = new Vector<Goal>();
	boolean viewingTopCard = false;
	
	/** the next move to make, determined by update, or */
	char nextMove;
	/** move North (--y) */
	public static final int N = 'w';
	/** move West (--x) */
	public static final int W = 'a';
	/** move South (++y) */
	public static final int S = 's';
	/** move East (++x) */
	public static final int E = 'd';

	/** @param dir ( {@link #N},  {@link #W},  {@link #S},  {@link #E} ) */
	public void move(int dir)
	{
		switch(dir){
		case N:	--y;	break;
		case W:	--x;	break;
		case S:	++y;	break;
		case E:	++x;	break;
		}
	}
	/** @param a_ms number of milliseconds since last update */
	public void update(int a_ms){
		move(nextMove);
		nextMove = 0;
	}
}
